package com.cn.wanxi.autoconfig.selector;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.function.Predicate;

/**
 * @ClassName SelfAutoConfigurationImportSelector
 * @Description 硬编码格式加载配置类的全限名
 * @Author JiJiang
 * @Date 2022/10/18 19:11
 * @Version 1.0
 */

public class SelfAutoConfigurationImportSelector implements ImportSelector {

    /**
     * @MethodName selectImports
     * @Description 返回需要加载到容器配置类文件的类全限名
     * @Param [importingClassMetadata]
     * @Return java.lang.String[]
     **/
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {


        String[] importClassFullNameArr = {"com.cn.wanxi.autoconfig.config.SelfDefineConfig"};


        return importClassFullNameArr;
    }

    @Override
    public Predicate<String> getExclusionFilter() {
        return null;
    }
}
